package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemeberPowerMapper;
import com.whq.entity.MemeberPower;
import com.whq.service.MemeberPowerService;

@Service(value = "trMemeberPowerService")
public class MemeberPowerServiceImpl implements MemeberPowerService {

    @Autowired
    private MemeberPowerMapper<MemeberPower>trMemeberPowerMapper;
    
    @Override
    public Integer insertSelective(MemeberPower trMemeberPower) throws Exception {
           return this.trMemeberPowerMapper.insertSelective(trMemeberPower);
        }

    @Override
    public Integer insertBatch(List<MemeberPower> trMemeberPower) throws Exception {
           return this.trMemeberPowerMapper.insertBatch(trMemeberPower) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.trMemeberPowerMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.trMemeberPowerMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemeberPower trMemeberPower) {
           return this.trMemeberPowerMapper.updateByPrimaryKeySelective(trMemeberPower);
    }

    @Override
    public MemeberPower findById(Object id) {
           return (MemeberPower) this.trMemeberPowerMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemeberPower> selectByCondition(MemeberPower trMemeberPower) {
           return (List<MemeberPower>) this.trMemeberPowerMapper.selectByCondition(trMemeberPower);
    }

    @Override
    public Integer selectCountByCondition(MemeberPower trMemeberPower) {
           return  this.trMemeberPowerMapper.selectCountByCondition(trMemeberPower);
    }

}
